﻿using UnityEngine;

namespace Helpers
{
    public static class LogHelper
    {
        public static void LogInfo(string label, string msg, UnityEngine.Object context = null)
        {
            Debug.Log($"[{label}]: {msg}", context);
        }

        public static void LogWarning(string label, string msg, UnityEngine.Object context = null)
        {
            LogColor(label, msg, Color.yellow);
            
        }

        public static void LogError(string label, string msg, UnityEngine.Object context = null)
        {
            Debug.LogError($"-[{label}]: {msg}", context);
        }

        public static void LogColor(string label, string msg,  Color color, UnityEngine.Object context = null)
        {
            Debug.Log($"<color=#{ColorUtility.ToHtmlStringRGB(color)}>[{label}]: {msg} </color>", context);
        }
    }
}